<?php

#[('静态方法')]
class Person
{
    public $name = "www.hflxhn.com";
    public static $tot;

    public function __construct()
    {
        SELF::$tot++;
    }

    public function start()
    {
        echo "my host is {$this->name}";
    }

    public static function eat()
    {
        echo "不需要实例化直接通过类名调用";
    }
}

Person::eat();
